package top.kaoshanji.p4ch25c;

/**
 * 代码清单-p4ch25c-318页b：具体元素1
 * @author kaoshanji
 * ^_^
 * create time 2025/3/27 10:55
 */
public class ConcreteElement1 extends Element {

    // 完善业务逻辑
    @Override
    public void doSomething() {
        // 业务逻辑
    }

    // 允许那个访问者访问
    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }
}
